﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012CF RID: 4815
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncChessRogueNousMainStoryScNotify : IMessage<SyncChessRogueNousMainStoryScNotify>, IMessage, IEquatable<SyncChessRogueNousMainStoryScNotify>, IDeepCloneable<SyncChessRogueNousMainStoryScNotify>, IBufferMessage
	{
		// Token: 0x17003CE0 RID: 15584
		// (get) Token: 0x0600D7BE RID: 55230 RVA: 0x00242F0B File Offset: 0x0024110B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncChessRogueNousMainStoryScNotify> Parser
		{
			get
			{
				return SyncChessRogueNousMainStoryScNotify._parser;
			}
		}

		// Token: 0x17003CE1 RID: 15585
		// (get) Token: 0x0600D7BF RID: 55231 RVA: 0x00242F12 File Offset: 0x00241112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncChessRogueNousMainStoryScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CE2 RID: 15586
		// (get) Token: 0x0600D7C0 RID: 55232 RVA: 0x00242F24 File Offset: 0x00241124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncChessRogueNousMainStoryScNotify.Descriptor;
			}
		}

		// Token: 0x0600D7C1 RID: 55233 RVA: 0x00242F2B File Offset: 0x0024112B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousMainStoryScNotify()
		{
		}

		// Token: 0x0600D7C2 RID: 55234 RVA: 0x00242F3E File Offset: 0x0024113E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousMainStoryScNotify(SyncChessRogueNousMainStoryScNotify other) : this()
		{
			this.chessRogueMainStoryInfo_ = other.chessRogueMainStoryInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D7C3 RID: 55235 RVA: 0x00242F68 File Offset: 0x00241168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncChessRogueNousMainStoryScNotify Clone()
		{
			return new SyncChessRogueNousMainStoryScNotify(this);
		}

		// Token: 0x17003CE3 RID: 15587
		// (get) Token: 0x0600D7C4 RID: 55236 RVA: 0x00242F70 File Offset: 0x00241170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueNousMainStoryInfo> ChessRogueMainStoryInfo
		{
			get
			{
				return this.chessRogueMainStoryInfo_;
			}
		}

		// Token: 0x0600D7C5 RID: 55237 RVA: 0x00242F78 File Offset: 0x00241178
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncChessRogueNousMainStoryScNotify);
		}

		// Token: 0x0600D7C6 RID: 55238 RVA: 0x00242F86 File Offset: 0x00241186
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncChessRogueNousMainStoryScNotify other)
		{
			return other != null && (other == this || (this.chessRogueMainStoryInfo_.Equals(other.chessRogueMainStoryInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D7C7 RID: 55239 RVA: 0x00242FBC File Offset: 0x002411BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.chessRogueMainStoryInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D7C8 RID: 55240 RVA: 0x00242FF0 File Offset: 0x002411F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D7C9 RID: 55241 RVA: 0x00242FF8 File Offset: 0x002411F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D7CA RID: 55242 RVA: 0x00243001 File Offset: 0x00241201
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.chessRogueMainStoryInfo_.WriteTo(ref output, SyncChessRogueNousMainStoryScNotify._repeated_chessRogueMainStoryInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D7CB RID: 55243 RVA: 0x00243028 File Offset: 0x00241228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.chessRogueMainStoryInfo_.CalculateSize(SyncChessRogueNousMainStoryScNotify._repeated_chessRogueMainStoryInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D7CC RID: 55244 RVA: 0x00243061 File Offset: 0x00241261
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncChessRogueNousMainStoryScNotify other)
		{
			if (other == null)
			{
				return;
			}
			this.chessRogueMainStoryInfo_.Add(other.chessRogueMainStoryInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D7CD RID: 55245 RVA: 0x0024308F File Offset: 0x0024128F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D7CE RID: 55246 RVA: 0x00243098 File Offset: 0x00241298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 42U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.chessRogueMainStoryInfo_.AddEntriesFrom(ref input, SyncChessRogueNousMainStoryScNotify._repeated_chessRogueMainStoryInfo_codec);
				}
			}
		}

		// Token: 0x040055FB RID: 22011
		private static readonly MessageParser<SyncChessRogueNousMainStoryScNotify> _parser = new MessageParser<SyncChessRogueNousMainStoryScNotify>(() => new SyncChessRogueNousMainStoryScNotify());

		// Token: 0x040055FC RID: 22012
		private UnknownFieldSet _unknownFields;

		// Token: 0x040055FD RID: 22013
		public const int ChessRogueMainStoryInfoFieldNumber = 5;

		// Token: 0x040055FE RID: 22014
		private static readonly FieldCodec<ChessRogueNousMainStoryInfo> _repeated_chessRogueMainStoryInfo_codec = FieldCodec.ForMessage<ChessRogueNousMainStoryInfo>(42U, ChessRogueNousMainStoryInfo.Parser);

		// Token: 0x040055FF RID: 22015
		private readonly RepeatedField<ChessRogueNousMainStoryInfo> chessRogueMainStoryInfo_ = new RepeatedField<ChessRogueNousMainStoryInfo>();
	}
}
